package ms.platform.system.dao;

import java.util.List;
import java.util.Map;

import ms.platform.system.model.AdminRole;
import ms.platform.system.model.Role;

public interface RoleDAO {

	List<Role> getAllRoleByAdminId(Integer id);

	List<Role> queryRoleListByCondition(Map<String, Object> map);

	Role queryRoleById(Integer id);
	
	Role queryRoleByName(String name);

	void update(Role role);

	void insert(Role role);

	void deleteById(Integer id);

	void insertAdminRole(AdminRole adminRole);
	
	void deleteAdminRole(AdminRole adminRole);
	
	void deleteAdminRoleById(Integer adminId);

	Integer queryRoleCount(Map<String, Object> map);
	
	AdminRole queryAdminRole(AdminRole adminRole);
}
